package com.ruoyi.slope.video.AICamera.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.video.AICamera.mapper.SlopeCameraAiMapper;
import com.ruoyi.slope.video.AICamera.domain.SlopeCameraAi;
import com.ruoyi.slope.video.AICamera.service.ISlopeCameraAiService;

/**
 * 边坡落石及碎落监测Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-11
 */
@Service
public class SlopeCameraAiServiceImpl implements ISlopeCameraAiService 
{
    @Autowired
    private SlopeCameraAiMapper slopeCameraAiMapper;

    /**
     * 查询边坡落石及碎落监测
     * 
     * @param id 边坡落石及碎落监测主键
     * @return 边坡落石及碎落监测
     */
    @Override
    public SlopeCameraAi selectSlopeCameraAiById(Long id)
    {
        return slopeCameraAiMapper.selectSlopeCameraAiById(id);
    }

    /**
     * 查询边坡落石及碎落监测列表
     * 
     * @param slopeCameraAi 边坡落石及碎落监测
     * @return 边坡落石及碎落监测
     */
    @DataScope(deptAlias = "s")
    @Override
    public List<SlopeCameraAi> selectSlopeCameraAiList(SlopeCameraAi slopeCameraAi)
    {
        return slopeCameraAiMapper.selectSlopeCameraAiList(slopeCameraAi);
    }

    /**
     * 新增边坡落石及碎落监测
     * 
     * @param slopeCameraAi 边坡落石及碎落监测
     * @return 结果
     */
    @Override
    public int insertSlopeCameraAi(SlopeCameraAi slopeCameraAi)
    {
        return slopeCameraAiMapper.insertSlopeCameraAi(slopeCameraAi);
    }

    /**
     * 修改边坡落石及碎落监测
     * 
     * @param slopeCameraAi 边坡落石及碎落监测
     * @return 结果
     */
    @Override
    public int updateSlopeCameraAi(SlopeCameraAi slopeCameraAi)
    {
        return slopeCameraAiMapper.updateSlopeCameraAi(slopeCameraAi);
    }

    /**
     * 批量删除边坡落石及碎落监测
     * 
     * @param ids 需要删除的边坡落石及碎落监测主键
     * @return 结果
     */
    @Override
    public int deleteSlopeCameraAiByIds(Long[] ids)
    {
        return slopeCameraAiMapper.deleteSlopeCameraAiByIds(ids);
    }

    /**
     * 删除边坡落石及碎落监测信息
     * 
     * @param id 边坡落石及碎落监测主键
     * @return 结果
     */
    @Override
    public int deleteSlopeCameraAiById(Long id)
    {
        return slopeCameraAiMapper.deleteSlopeCameraAiById(id);
    }
}
